<!DOCTYPE html>
<html>
	<meta charset ="utf-8">
	<script src="http://code.jquery.com/jquery-1.3.1.min.js"></script>
	<script>
		$(document).ready(function(){
			$('p').click(function(node){
				var data = $(this).text();
				var tmp;  
                if(data=="MissZhou要努力1") tmp=1;  
                else if(data=="MissZhou要努力2") tmp=2;  
                else tmp=3; 
                $.post('http://zhipengyan_12.gitee.io/helloworld/ajaxPHPTest.php',{name:tmp},function(dd){  
                    $('div').html(dd);
                }); 
			});
		});
	</script>
	<body>
		<p name="name">MissZhou要努力1</p><br>  
	    <p name="name">MissZhou要努力2</p><br>  
	    <p name="name">MissZhou要努力3</p><br>  
	    <div>
	    	
	    </div>
	</body>
</html>